﻿<%@ Page Title="留言列表" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true"
    CodeBehind="MessageList.aspx.cs" Inherits="StarClub.Web.Admin.MessageList" %>

<%@ Register Src="../UserControl/UCFootSeach.ascx" TagName="UCFootSeach" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script type="text/javascript" language="javascript">
    function SelectAll() {
        var allCheckbox = $("#ListViewTable:checkbox");
        alert(allCheckbox.eq(0).attr("checked"));
        for (var i = 0; i < allCheckbox.length; i++) {
            //if (allCheckbox[i].attr("checked") == true)
            
//                allCheckbox[i].attr("checked", false);
//            else
//                allCheckbox[i].attr("checked", true);
        }
    }
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <dl class="m_tit">
        <dt>留言列表</dt>
        <dd class="mt_bt">
            <input class="pwb_bt" type="button" value="新建留言" onclick="window.location='ReleaseMessage.aspx'" /></dd>
    </dl>
    <div class="tab">
        <asp:ListView ID="ListView1" runat="server" OnPagePropertiesChanged="ListView1_PagePropertiesChanged">
            <LayoutTemplate>
                <table id="ListViewTable" width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr class="t_tit">
                        <td class="np_0">
                        </td>
                        <td class="np_1">
                            标题
                        </td>
                        <td class="np_2">
                            摘要
                        </td>
                        <td class="np_3">
                            时间
                        </td>
                        <td class="np_4">
                            投递者
                        </td>
                        <td class="np_5">
                            <span class="nl_7">操作项目</span>
                        </td>
                    </tr>
                    <asp:PlaceHolder ID="itemPlaceholder" runat="server"></asp:PlaceHolder>
                </table>
            </LayoutTemplate>
            <ItemTemplate>
                <tr class="t_con">
                    <td>
                        <input name="" type="checkbox" value="" />
                    </td>
                    <td class="nl_1 textleft">
                        <a href="#" target="_blank">
                            <%#Eval("title") %></a>
                    </td>
                    <td>
                        <a href="#">查看</a>
                    </td>
                    <td>
                        <%#Eval("createtime","{0:yyyy-MM-dd}") %>
                    </td>
                    <td>
                        <%#Eval("name") %>
                    </td>
                    <td>
                        <input class="pwb_bt" name="input" type="button" value="编辑" />
                        &nbsp;&nbsp;
                        <input class="pwb_bt del" name="input6" type="button" value="删除" />
                    </td>
                </tr>
            </ItemTemplate>
            <EmptyDataTemplate>
                <center>
                    <h4>
                        暂时还没有可显示的数据</h4>
                </center>
            </EmptyDataTemplate>
        </asp:ListView>
        <div class="nl_view" style="display: none">
            <p class="tit">
                留言摘要</p>
            <p class="v_c">
                <textarea class="textarea" name="" cols="" rows="" id="new_d1"></textarea><span>摘要还可输入
                    17 字</span></p>
            <p class="v_b">
                <input class="pwb_bt" name="input" type="button" value="确认修改" />&nbsp;<span>或</span>&nbsp;<a
                    href="#">关闭取消</a></p>
        </div>
        <ul id="ul_SelectDate" runat="server" class="chos">
            <li>
                <input name="" type="checkbox" value="" onclick="SelectAll()"/></li>
            <li>全选/反选</li>
            <li>
                <select name="jumpMenu" size="1" id="jumpMenu" onchange="MM_jumpMenu('parent',this,0)">
                    <option>其它</option>
                    <option>演唱会</option>
                    <option>活动</option>
                </select></li>
        </ul>
        <div id="div_DataPager" runat="server">
            <div class="manu2">
                第<asp:TextBox ID="txbPageNum" runat="server" MaxLength="5" size="4" CssClass="ipt"></asp:TextBox>页&nbsp;&nbsp;
                <asp:Button ID="btnGoPage" runat="server" CssClass="pwb_bt" Text="跳转" OnClick="btnGoPage_Click" />
            </div>
            <asp:DataPager ID="DataPager1" runat="server" PagedControlID="ListView1" class="manu"
                PageSize="3">
                <Fields>
                    <asp:NextPreviousPagerField PreviousPageText="&lt; Prev" ShowNextPageButton="False" />
                    <asp:NumericPagerField CurrentPageLabelCssClass="current" />
                    <asp:NextPreviousPagerField NextPageText="Next &gt;" ShowPreviousPageButton="False" />
                </Fields>
            </asp:DataPager>
            <div class="clear">
            </div>
        </div>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <uc1:UCFootSeach ID="UCFootSeach1" runat="server" />
</asp:Content>
